Skip to content

fix(pm): dequeue read-back pins and jsdocs; a carried approval refused on a seat signature on any line - #34037

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/project-thread-cv8xax
Nov 15, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/project-thread-cv8xax

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Steve · project thread
Part of #33768
Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:给中继出队(dequeue)补一条自测——出队后第二次读 PR 失败时不算确认、整对重读;两处函数注释改成"读两次";插队的"携带批准"评论只要任一行带席位签名就拒收(原来只看首行)。
  • 为什么改:这是 PR pm: relay pr_dequeue door and the approved large-PR jump; the landing seat watches its queued PR #33732 复审留下的三条小尾巴(E2、E3、D3),注释与文件头不一致,签名藏在第二行就能绕过"席位评论不算维护者批准"。
  • 风险与回滚:只动 scripts/pm/fleet-write/ 两个脚本,不发布;D3 只会让更多评论被拒、不会放宽;回滚 = revert 本 PR。
  • 先看:scripts/pm/fleet-write/ops.mjs 的 enqueueFrontSizeLift(逐行读签名那一行);execute.mjs 自测里新增的 "a SECOND pull read that fails" 一行。
  • 两分钟验证:node scripts/pm/fleet-write/execute.mjs --self-test,应看到 "424 cases pass across 31 batteries"。
  • 需要你做的:无,席位落地。

What changes

Three items of the #33768 checklist (review follow-ups of PR #33732). The rest stay open on the card: the fleet-write.yml comment and the AGENTS.md sentence (Tier H, a later governed batch), N1/E1 (measured at the first live stroke), D2, D4 and N2 (each needs a budget or a ruling).

  • E2 (execute.mjs self-test). The rows near the dequeue read-back pinned a failed FIRST pull read (pullLate: 502, ok) and a merge that shows only on the second read (mergedLate), but no failed SECOND read. New row: pull reads ok, 502, ok, ok. The 502 confirms nothing, so the queue is read again at the interval and the pair starts over. It lands at three polls (clock 3 * DEQUEUE_POLL_MS), with 5 pull GETs and 4 GraphQL calls. The pr_dequeue battery pin goes 28 → 29, with a roster comment.
  • E3 (jsdocs). dequeueAction now says the pull's own GET reads it open and unmerged TWICE, one pollMs apart, and that a failed second read starts the pair over. dequeuePullAfter now says it judges ONE of the two reads and the executor lands only when both are ok. Both match the file headers.
  • D3 (optional hardening, taken: it stays inside scripts/pm/fleet-write/**). enqueueFrontSizeLift runs the passed-in signature reader on every line of the approval_comment, not only the first non-empty one. A seat signature on any line refuses the carry, and the reading says "holds the seat signature". The row "⭐ CARRIED, the other way: … signature line further down … still carries it" flips to "⛔ CARRIED, refused on ANY line", which also checks that the reading names the seat. The SIZE lift battery stays at 12 cases; its name ("holding a seat signature on any line"), the ops.mjs header paragraph and the execute.mjs header sentence now say any line. The reader stays passed in, so ops.mjs still imports no guard.

No changeset: the diff is scripts/pm/** only and publishes nothing (skip-changeset).

Tests

At head 1c433b2:

  • node scripts/pm/fleet-write/execute.mjs --self-test: 424 cases pass across 31 batteries (423 at base c3c0c30).
  • Forced test edit: the D3 row "signature line further down still carries it" is flipped to a refusal, as the card asks.
Ablations (both red on exactly the new pin, restored, `git diff HEAD` empty)

Run with node scripts/ablation-replace.mjs (the anchor must hit, restore is checked on disk) after the fix was committed.

  • E2: the second read's if (after.ok) return changed to if (after.ok || after.pending) return. Result: ✗ a SECOND pull read that fails (ok, 502) … — got [0,3000,3,3], want [0,9000,5,4], 1 of 424 failed.
  • D3: the line scan changed back to signatureOf(c.body) (first line only). Result: ✗ ⛔ CARRIED, refused on ANY line … — got [[0,1,200],false], want [[5,0,"not sent"],true], 1 of 424 failed.

Acceptance notes

Verification

Derived gates (37 of 37 exit 0, at head 1c433b2)

node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack listed 37 commands; each one exited 0: check-closing-keyword-parity (+ self-test), check-comment-mask-corpus, check-declaration-mirrors (+ self-test), check-self-test-wired (+ self-test), check-self-test-workflow-commands (+ self-test), check-whole-set-label-write (+ self-test), plan-test-core-shards self-test, bare-root-worklist self-test, and the pnpm checks agent-test-spelling, bash32-floor, ci-filter-parity, cli-command-ids, cross-package-test-inputs, driver-memory-census, entry-guard, gitlink-declared, nul-bytes, parse-guard, pm-close-cards, pm-dispatch-gates, pm-fleet-write-dispatch, pm-fleet-write-execute, pm-fleet-write-validate, pm-issue-transfer, pm-post-stamped, pm-record-recognisers, pm-write-pace, pnpm-filter-targets, pnpm-flag-spellings, refd-timer-probe, scripts-symbol-anchors, watch-hint-literal.

--ran reconciliation: ✓ dispatch-gates --ran: 37 derived famil(ies) accounted for — 37 run, 0 NOT-MEASURED (a DERIVED zero — all 37 recorded an exit code and none of them is 3).

🤖 Generated with Claude Code

https://claude.ai/code/session_01ADHkmPoZhhhS5uc7UQqwZ7


Generated by Claude Code

…d on a signature on any line

- E2: a self-test row pins a failed SECOND pull read after the dequeue
  (ok, 502, ok, ok): the 502 confirms nothing, the queue is read again and
  the pair starts over, landing at three polls.
- E3: the jsdocs on dequeueAction and dequeuePullAfter now say the pull is
  read twice, one poll apart, matching the file headers.
- D3: the SIZE lift's carrying comment is refused when ANY line holds a
  seat signature, not only the first; the "signature lower down still
  carries" row flips to a refusal.

Claude-Session: https://claude.ai/code/session_01ADHkmPoZhhhS5uc7UQqwZ7
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 15, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#1 · os-steve · session_01ADHkmPd7uRqHauEehGPr19

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 1c433b21f90b669ba5134603cf4d8ecaf5451b81
Local-runs: none
Scope: none + scripts/pm/fleet-write/execute.mjs, scripts/pm/fleet-write/ops.mjs

Read: card #33768 (body and its 3 comments: triage 6893159294, claim 6897825422, os-dev-report 6898114916; no ruling and no earlier record on the card), PR #34037 (body, file list, net diff against main from merge base c3c0c30d: 2 files, +24 −15), and the check-runs on the head. reviewFace returns no hits on the two paths (no published schema, no governed path, no narrowing arm), so the face read off the committed tree is the declaration face; this record was served above it, on the seat's standing practice for scripts/pm/**, and reviews both files whole.

Check-runs on the head, snapshot 2026-11-15T17:12Z: 20 completed success, 0 failed. Among them every run that judges this diff: Lint · repo & tooling gates (it runs pnpm check:pm-fleet-write-execute, the executor self-test holding both new pins), Lint · PM dispatch-gates, Lint · scoped · tooling self-tests, Check Changeset, Check PR Size, Governed Surface Queue Guard, PR-body guards. Still in progress at the snapshot, 4: Test Core (1/8), Type Check · consumer gates, Type Check · debt ledger, Type Check · workspace. None of the four reads scripts/pm/fleet-write/**; the merge gate waits for them regardless, and this verdict does not stand in for them.

① Derived judgments

  1. enqueueFrontSizeLift accept set (ops.mjs) — NARROWED, right. Before: a carrying approval_comment was refused when its first non-empty line was a seat signature. Now: refused when ANY line is one (body.split(/\r?\n/u), the passed-in reader run on each line, the first hit named). Every comment refused before is refused now (the first line is one of the lines); the only newly refused set is "authorised author, on this pull, names the head, a whole-line signature below the first line". No comment that was refused now carries. The PR body's "D3 only refuses more, never widens" holds on the code.
    • Cannot wrongly CARRY a signed one that the old code refused: the reader per line is the same anchored whole-line shape (SEAT_SIGNATURE_LINE, trimmed), so a first-line signature reads identically. It newly closes a real shape: a signature that is not the first non-empty line because something precedes it (a carry sentence, or a leading HTML attribution comment line of the kind this very PR body opens with).
    • Cannot wrongly REFUSE beyond the stated rule: a line is a signature only when the WHOLE trimmed line is LANE#N · ACCOUNT · SESSION. A blockquoted line (a GitHub quote-reply), a list item, or a signature inside a sentence is not one, so a maintainer quoting a seat's record by hand still carries. A maintainer pasting a seat's signature raw on a line of its own is refused; that is the card's D3 as written, fail-closed, the reading names the signature, and a second comment recovers it.
    • The missing-reader arm is unchanged in effect (lifts: false), only its sentence is reworded; a reader that answers null on every line still carries (the existing row holds, CI green).
  2. Refusal reading text — changed, right. "opens with the seat signature …" becomes "holds the seat signature …"; the tail "a seat's comment is no carried approval" is kept, so the first-line row's pin still matches and the flipped row pins the new head of the sentence. No consumer outside the two files reads either string (surveyed on main); landing-operations.md L38 says "维护者非席位签名评论", which agrees with both readings.
  3. Self-test roster (execute.mjs) — right. pr_dequeue 28 → 29 with one new row; SIZE lift stays 12 with one row flipped and the battery renamed identically at the roster key and the battery(...) call. Total 424 across 31, as the body says; the owning check-run is green.
  4. E2 pin — right, and it pins what the card asks. Answers [preflight ok, ok, 502, ok…]: read-back 1 takes ok then (one poll) 502, pending; one poll; read-back 2 re-reads the queue and takes ok, (one poll), ok. Traced on dequeueAction at the head: clock 3 * DEQUEUE_POLL_MS, 5 pull GETs (1 preflight + 2 + 2), 4 GraphQL calls (preflight queue, mutation, 2 read-backs). The four-number pin separates the three wrong implementations: landing on the failed second read (3000, 3, 3 — the dev's ablation), re-reading the pull once instead of restarting the pair (6000, 4), and restarting the pair without re-reading the queue (GraphQL 3).
  5. E3 jsdocs — right against the code. dequeueAction: "open and unmerged TWICE, one pollMs apart — a second read that fails is no confirmation: the queue is read again and the pair starts over" is exactly the loop (after.pending falls through to the window check, the sleep, and the next queue read). dequeuePullAfter: "ONE of the pull's own GETs … the executor takes TWO such reads, one poll apart, and lands only when both are ok" matches the function (one answer in, one verdict out) and its one caller. Both now agree with the file headers.
  6. Public surface — none. No export added, removed or re-signed; no workflow, schema, skill or governed path in the file list (Governed Surface Queue Guard green). The relay's envelope (validate.mjs) is untouched.

② Semver level

skip-changeset is right: the diff is scripts/pm/fleet-write/** only and publishes nothing from any released package; Check Changeset is green on the head. The body's Clause-②: no with no arm is right: the narrowing in ① is of the relay's own accept set, not a published one, so the (narrowing) arm is not owed. Metadata-protocol: none is right: nothing a metadata author writes changes.

③ Boundary flags

  • Dev open_questions: empty. deviations: none declared; none found — the diff stays inside the claim's file surface (the two files, E2, E3, optional D3).
  • Flag "D3 taken (optional)": answered — the card offers it, it stays inside the claimed surface, and it narrows only.
  • Flag "forced test edit, the 'signature lower down still carries' row flipped": answered — the card's D3 line names that flip itself ("the row pinning … flips with it"); the flipped row asserts the refusal AND the reading, not a weaker pin.
  • Flag "concurrency with PR pm: the low-risk arm lands an add-only ADR note as Tier S; any other ADR change stays H #33975 and PR fix(pm): open mailboxes unlocked again — a locked mailbox refuses the relay's own comment #34022 on execute.mjs": not judged here (their diffs are outside this brief's inputs). ESCALATED to the landing seat: this head reads blocked, not conflicting, against main today; whichever of the three lands later rebases, and the battery floor (31, or 30 after fix(pm): open mailboxes unlocked again — a locked mailbox refuses the relay's own comment #34022) is re-read on that rebase.
  • Part of #33768, open items named honestly: the card has nine boxes; the PR takes E2, E3, D3 and its body names the other six as staying open — the stale fleet-write.yml comment and the AGENTS.md (PD#14) sentence (governed, a later batch), N1 and E1 (measured at the first live stroke), D2, D4, N2. Nothing is claimed that the diff does not do, and the card must stay open after the merge with those six unticked.

④ Design judgment

No hits, so no ④ is owed on this face; the two implementing files are judged against the contract they implement (the card's three items and the file headers): they agree. Findings — must-fix 0, should-fix 0, nit 3:

  • nit 1 execute.mjs, the row after the flipped one: its title still says "the opening line unjudged is never a pass" while the reading it guards now says "lines were not judged for a seat signature". Title only; the assertion is unchanged and correct.
  • nit 2 ops.mjs, enqueueFrontSizeLift jsdoc: signatureOf is now handed ONE LINE per call, not the body; the param note still describes it only as "the seat-signature reader". It is right for readSignatureLine (a one-line body reads that line); a sentence saying "called once per line" would keep a future reader honest.
  • nit 3 ops.mjs, the line split is \r?\n, the reader's own. A lone CR (a line ending to the Markdown renderer) is not split, so a signature after one is not read. Not reachable by the writers that sign (they emit LF) and no wider than before this PR; note it on the card only if D3 is ever revisited.

Implemented-by: claude/project-thread-cv8xax
Reviewed-by: session_01ADHkmPd7uRqHauEehGPr19

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#1 · os-steve · session_01ADHkmPd7uRqHauEehGPr19

席位核对 · ACCEPT · head 1c433b21f90b669ba5134603cf4d8ecaf5451b81 · 2026-11-15T17:21Z

  • 形态: 2 files, scripts/pm/fleet-write/execute.mjs (+15/−8) and scripts/pm/fleet-write/ops.mjs (+9/−7). check-governed-merges --pr 34037: NOT governed (0 of 2 paths hit the register).
  • 前提实测: PR pm: relay pr_dequeue door and the approved large-PR jump; the landing seat watches its queued PR #33732 merged; the dev measured the existing dequeue rows pin only a failed first read and a late merge, not a failed second read; pr_dequeue battery 28 → 29, SIZE-lift battery still 12 with one row flipped to refusal (D3).
  • 复核: PASS 6898215827 on this head, Served-tier: CONTRACT_REVIEW_TIER (served above the declaration face, the seat's standing practice for scripts/pm/**), no must-fix, no should-fix, 3 nits. D3 only narrows: nothing refused before now carries.
  • 门禁 check-runs: 49 on this head, all completed, 26 success, 23 skipped, none red.
  • 接受的偏差: nits N1–N3 not carried (a stale row title, a jsdoc wording, a lone-CR split no wider than before and unreachable by the signing writers).
  • 范围外去向: the card's six open items (the fleet-write.yml comment and the AGENTS.md sentence, which are Tier H; N1/E1, D2, D4, N2) stay on review follow-ups of PR #33732 #33768 (Part of).
  • 落地: K = 3 (PRBASE 159757ab). Not governed → ready + auto-merge by this seat.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 15, 2026 17:21
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 15, 2026
Merged via the queue into main with commit 6a83f0c Nov 15, 2026
50 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-cv8xax branch November 15, 2026 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/s skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants